﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace CultuRAM.Models
{
    [Table("EventPropertyValues")]
    public class EventPropertyValue
    {
        [Key]
        [Display(Name = "ID")]
        public int PropertyValueId { get; set; }

        [Display(Name = "Valor")]
        public string Value { get; set; }

        [Display(Name = "ID do Evento")]
        public int  EventId { get; set; }

        [Display(Name = "ID da Propriedade")]
        public int  EventPropertyId { get; set; }

        [Display(Name = "Oculta")]
        public bool Shadow { get; set; }

        [ForeignKey("EventId")]
        [Display(Name = "Evento")]
        public virtual Event Event { get; set; }

        [ForeignKey("EventPropertyId")]
        [Display(Name = "Propriedade")]
        public virtual EventProperty EventProperty { get; set; }
    }
}